export default {
    // created() {
    //     //#ifdef MP-WEIXIN
    //     wx.showShareMenu({
    //         withShareTicket: true,
    //         menus: ['shareAppMessage', 'shareTimeline']
    //     });
    //     //#endif
    // },
    data() {
        return {
            share: {
                title: '蔚蓝至善优选',
                imageUrl: 'https://yl.weilankangyang.com/static/mini_program/share.jpg',
            }
        }
    },
    onShareAppMessage(res) { //发送给朋友
        return {
            title: this.share.title,
            path: `/pages/index/index`,
            imageUrl: this.share.imageUrl,
        }
    },
    onShareTimeline(res) {//分享到朋友圈
        return {
            title: this.share.title,
            imageUrl: this.share.imageUrl,
        }
    },
}